<template>
    <h4>同时绑定多个v-model</h4>
    <el-button @click="handler">pageNo{{ pageNo }}</el-button>
    <el-button @click="$emit('update:pageSize', pageSize + 4)">
      pageSize{{ pageSize }}
    </el-button>
</template>

<script setup lang="ts">
let props = defineProps(["pageNo", "pageSize"]);
let $emit = defineEmits(["update:pageNo", "update:pageSize"]);
//第一个按钮的事件回调
const handler = () => {
  $emit("update:pageNo", props.pageNo + 3);
};
</script>

<style scoped>
</style>
